package com.morehair.bean.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    private Integer id;
    private String username;
    private String password;
    private Byte gender;
    @JsonFormat(pattern = "YYYY-MM-dd")
    private Date birthday;
    private Date lastLoginTime;
    private String lastLoginIp;
    private Byte userLevel;
    private String nickname;
    private String mobile;
    private String avatar;
    private String weixinOpenid;
    private Byte status;
    private Date addTime;
    private Date updateTime;
    private Boolean deleted;

    public User(Integer id, String username, String password, Byte gender, Date birthday, Date lastLoginTime, String lastLoginIp, Byte userLevel, String nickname, String mobile, String avatar, String weixinOpenid, Byte status, Date addTime, Date updateTime, Boolean deleted) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.birthday = birthday;
        this.lastLoginTime = lastLoginTime;
        this.lastLoginIp = lastLoginIp;
        this.userLevel = userLevel;
        this.nickname = nickname;
        this.mobile = mobile;
        this.avatar = avatar;
        this.weixinOpenid = weixinOpenid;
        this.status = status;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }
}